<html>

<head>
<?php include("../../MerchandiseBay/conn.php"); ?>
<?

$sqlAdmin="select * from admin ";
$qryAdmin=mysql_query($sqlAdmin,$conn);
?>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<script language="javascript" type="text/javascript">

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}

</script>
<style type="text/css">
<!--
.style1 {
	font-size: 24px;
	font-weight: bold;
}
-->
</style>
</head>

<body bgcolor="#0099CC">

		
<table border="0" bgcolor="#EEEEEE" style="border-collapse: collapse" bordercolor="#808080" id="table3">
  <tr> 
    <td height="33" colspan="7"><span class="style1"><font face="Times New Roman, Times, serif" color="#000000">Staff &nbsp;List </font></span></td>
  </tr>
  <tr> 
    <td bgcolor="#CC9933"><div align="center"><strong><font size="3" face="Verdana"> 
        No</font></strong></div></td>
	<td width="148" bgcolor="#CC9933"><div align="top"><strong><font size="3" face="Verdana"> 
    Name</font></strong></div></td>
    <td width="135" bgcolor="#CC9933"><div align="top"><strong><font size="3" face="Verdana"> 
    Position</font></strong></div></td>
	<td width="228" bgcolor="#CC9933"><div align="top"><strong><font size="3" face="Verdana"> 
   &nbsp;&nbsp; Update</font></strong></div></td>
  </tr>
  <?
  $count=1;
  while($rowAdmin=mysql_fetch_assoc($qryAdmin)) 
   {
    $d=$rowAdmin['id'];
   ?>
  <tr> 
    <td width="54" align="center"><font size="2" face="Verdana"><?=$count?></font></td>
	    <td width="148" align="top"><font size="2" face="Verdana">&nbsp; 
      <?=$rowAdmin['name']?>
      </font></td>
    <td width="135" align="top"><font size="2" face="Verdana">&nbsp; 
      <?=$rowAdmin['job']?>
      </font></td>
	 <td width="228" align="center"><font size="2" face="Verdana">&nbsp;Edit&nbsp;
		    <a href="editStaff.php?d=<?=$d?>&name=<?=$rowAdmin['name']?>&job=<?=$rowAdmin['job']?>"><img border="0" src="icon/note_edit.png" width="24" height="24"></a> / 
		    Delete
		    <a href="deleteStaff.php?d=<?=$d?>&t=admin"><img border="0" src="icon/note_delete.png" width="24" height="24"></a></font></td>
  </tr>
   <?
	$count=$count+1;
	}?>
  <tr> 
    <td width="54">&nbsp;</td>
    <td width="148">&nbsp;</td>
    <td width="135">&nbsp;</td>
    <td width="228">&nbsp;</td>
   
    
  </tr>
</table>
		
</body>

</html>
